#include "Interpreter.h"

#include <iostream>
using namespace std;

void test()
{
    Context* pContext = new Context(10);
    Expression* pExpression = new PlusExpression();
    pExpression->Interpreter(pContext);
    cout << "PlusExpression: " << pContext->GetRes() << endl;
    
    delete pExpression;
    pExpression = new MinusExpression();
    pExpression->Interpreter(pContext);
    cout << "MinusExpression: " << pContext->GetRes() << endl;

    delete pExpression;
    delete pContext;
}

int main()
{
    test();
    return 0;
}